package com.dongdong.controller;

import com.dongdong.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("msg")
public class MsgPhoneController {
    @Autowired
    private MsgService msgService;
    @RequestMapping("sendPhone")
    @ResponseBody
    public String sendPhoneMessage(String phoneNum){
        msgService.sendPhoneMessage(phoneNum);
        return "ok";
    }
}
